
import type { TMenuInfoReq, TMenuUsedReq } from "@/typing/menu";
import alovaInstance from "@/utils/request";

export const queryMenuList = () => alovaInstance.Get('/api/menu')
export const updateMenuUsed = (req: TMenuUsedReq) => alovaInstance.Patch('/api/menu/used', req)
export const updateMenuInfo = (req: TMenuInfoReq) => alovaInstance.Post('/api/menu', req)
export const deleteMenu = (id: number) => alovaInstance.Delete(`/api/menu/${id}`)


